#ifndef CORE_H
#define CORE_H

#include "../include/abstractcore.h"
#include <QMap>

class core :public AbstractCore
{
    Q_OBJECT
public:
    core();
    ~core();

    QAction *                       action(QString name);
    QResourceInterface  *           resourceInterface();
    QWidget*                        createWidget(const QString &name);

    void    setResourceInterface(QResourceInterface *interface);

protected slots:
    QByteArray    getResourceData(const QString &name);

protected:

    QMap<QString,QAction*>      m_actions;
    QResourceInterface          *m_resource;
};

#endif // CORE_H
